<!DOCTYPE html>
<html>

<head>
  <title>
    <%= title %>
  </title>
  <link rel='stylesheet' href='/lib/bootstrap/dist/css/bootstrap.min.css' />
  <link rel='stylesheet' href='/stylesheets/font-awesome.min.css' />
  <link rel='stylesheet' href='/stylesheets/ionicons.min.css' />
  <link rel='stylesheet' href='/lib/admin-lte/dist/css/AdminLTE.min.css' />
  <link rel='stylesheet' href='/lib/admin-lte/dist/css/skins/skin-blue.min.css' />
  <link rel='stylesheet' href='/stylesheets/style.css' />
  <style>
    textarea {
      resize: none;
    }
  </style>
</head>

<body class="hold-transition skin-blue sidebar-mini">
  <div class="wrapper">

    <% include header.ejs %>

      <% include menu.ejs %>
        <!-- Content Wrapper. Contains page content -->
        <div class="content-wrapper">
          <!-- Main content -->
          <section class="content">
            <div class="box box-info">
              <div class="box-header with-border">
                <h3 class="box-title">编辑
                  <%= platStr %>文本</h3>
              </div>
              <!-- /.box-header -->
              <!-- form start -->
              <form class="form-horizontal" action="/platform/addplatformAction" method="post">
                <div class="box-body">
                  <div class="form-group">
                    <label for="platformType" class="col-sm-2 control-label">平台类型</label>
                    <div class="col-sm-10">
                      <input type="text" class="form-control" value="<%= platformType %>" name="platformType" placeholder="platformType类型">
                    </div>
                  </div>

                  <!-- <div class="form-group">
                    <label for="platformID" class="col-sm-2 control-label">平台ID</label>
                    <div class="col-sm-10">
                      <input type="text" class="form-control" value="" name="platformID" placeholder="platformID">
                    </div>
                  </div> -->

                  <div class="form-group">
                    <label for="editor1" class="col-sm-2 control-label">平台附文本框</label>
                    <div class="col-sm-10">
                      <textarea id="editor1" class="form-control" name="editor1" rows="10" cols="80" placeholder="请输入相关文本"> <%- result[0].content %></textarea>
                    </div>
                  </div>

                  

                </div>
                <!-- /.box-body -->
                <div class="box-footer">
                  <div class="form-group">
                    <label for="alt" class="col-sm-2 control-label sr-only"></label>

                    <div class="col-sm-10">
                      <button type="submit" class="btn btn-info pull-left">完成</button>
                    </div>
                  </div>

                  <!-- /.box-footer -->
              </form>
              </div>

          </section>
          <!-- /.content -->
          </div>
          <!-- /.content-wrapper -->

          <!-- Main Footer -->
          <% include footer.ejs %>


            <!-- Add the sidebar's background. This div must be placed
         immediately after the control sidebar -->
            <div class="control-sidebar-bg"></div>
        </div>
        <!-- ./wrapper -->
</body>
<script src="/javascripts/jquery.min.js"></script>
<script src="/lib/bootstrap/dist/js/bootstrap.min.js"></script>
<script src="/javascripts/app.min.js"></script>
<script src="/lib/ckeditor/ckeditor.js"></script>
<!-- <script src="https://cdn.ckeditor.com/4.5.7/standard/ckeditor.js"></script> -->
<script>
  $(function () {
      // Replace the <textarea id="editor1"> with a CKEditor
      // instance, using default configuration.
      CKEDITOR.replace('editor1');
      //bootstrap WYSIHTML5 - text ed
  });
</script>

</html>